import pygame,os,sys
from pygame.locals import *
pygame.font.init()

def Ventana():
	ventana=pygame.display.set_mode((200,200))
	pygame.display.set_caption("Hello World")

	vent=pygame.font.Font(None,20)

	saludo=vent.render('Hola Mundo!!!',True,(255,255,255),(255,0,0))
	ventana.blit(saludo,(50,50))
	pygame.display.update()

def EsperaEvento():
	while True:
		eventos=pygame.event.get()
		for evento in eventos:
			if evento.type==QUIT:
				pygame.quit()
				sys.exit()

Ventana()
EsperaEvento()
